<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link href="../css/xzx_style.css" rel="stylesheet" />
		<link href="../css/xzx_pull_refresh.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav newbgRed">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">我的收藏</h1>
		</header>
		<div id="segmentedControl" class="mui-segmented-control mui-segmented-control-inverted xzx-segmented-control" style="top: 40px;">
			<a class="mui-control-item mui-active" id="link1">
				二手房
			</a>
			<a class="mui-control-item" href="#item2" id="link2">
				出租房
			</a>
			<a class="mui-control-item" href="#item3" id="link3">
				新房户型
			</a>
		</div>
		<div class="mui-content">
			
		</div>
		
		<script src="../js/mui.min.js"></script>
		<script src="../js/common.util.js"></script>
		<script src="../js/network.js"></script>
		<script src='../js/md5.js'></script>
		<script type="text/javascript">
			var _clientKind = 1; //1新房，2二手房，3租房
			var _type = 2; //类型，2买方/租客,1卖方/房东
			mui.init({
				subpages: [{
					url: 'xol_collectHouse_sub.html',
					id: 'xol_collectHouse_sub',
					styles: {
						top: '84px',
						bottom: '0px',
					}
				}]
			});
			mui.plusReady(function() {

			});
			mui('#segmentedControl').on('tap', '.mui-control-item', function() {
				if(this.id == 'link1') {
					_type = 2;
				} else if(this.id == 'link2') {
					_type = 3;
				} else {
					_type = 1;
				}
				configSubPageForRefresh();
			});
			document.addEventListener('onClientSubPageReady', function() {
				configSubPageForRefresh();
			});
			var configSubPageForRefresh = function(){
				var subPage = plus.webview.getWebviewById('xol_collectHouse_sub');
				mui.fire(subPage, 'configClientSubpage', {
					type: _type
				});
			}
		</script>
	</body>

</html>